Flexible distributed lag models using random functions with application to estimating mortality displacement from heat-related deaths